/********************************************************************************
Script name	:aspnet-mvc.Constraint
Description	: Create constraint for database
*******************************************************************************/


PRINT 'Creating constraints for dbo.webpages_UsersInRoles'
GO




ALTER TABLE [dbo].[webpages_UsersInRoles] ADD CONSTRAINT [fk_UserId] FOREIGN KEY
	(
		[UserId]
	)
	REFERENCES [dbo].[UserProfile]
	(
		[UserId]
	)
GO


ALTER TABLE [dbo].[webpages_UsersInRoles] ADD CONSTRAINT [fk_RoleId] FOREIGN KEY
	(
		[RoleId]
	)
	REFERENCES [dbo].[webpages_Roles]
	(
		[RoleId]
	)
GO
